<?php
class Block_CartShopping extends Zend_View_Helper_Abstract{

    public function CartShopping(){
        $soluong=0;
        $tongcong=0;
		$yourCart = new Zend_Session_Namespace('cart');
        if(isset($yourCart->cart)){
            foreach($yourCart->cart as $vl){
                $soluong+=$vl['so_luong'];
                $tongcong+=$vl['thanh_tien'];
            }
        }
        else{
            $tongcong=0;
            $soluong=0;
        }
        require_once(BLOCK_PATH. '/CartShopping/default.php');
    }
}